<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
</head>
<body>
<script type="text/javascript">
$('#tt').tabs({
    border:false,
    onSelect:function(title){
		alert(title+' is selected');
    }
});

function tables(ll){
 	$('.szkjpf_biaoge').datagrid({    
 		//数据源地址
 		url:'shijuanpinfenchaxun',
 		queryParams:{
 			outname:ll
 		},
	    columns:[[
			{field:'EMPNAME',width:320,title:'',align:'center',hidden:true},
			{field:'RSENAME',width:320,title:'',align:'center',hidden:true},
	    	{field:'NAME',fixed:false,width:140,title:'姓名',align:'center',
				formatter: function(value,row,index){
					if(row["EMPNAME"]=="")
						return row["RSENAME"]
					if(row["RSENAME"]=="")
						return row["EMPNAME"]
				}
			},    
	    	{field:'OUTNAME',fixed:false,width:140,title:'试卷名称',align:'center'},
	        {field:'ZKZREM',fixed:false,width:140,title:'准考证号',align:'center'},
	        {field:'OUTZONF',fixed:false,width:140,title:'考试总分',align:'center'},
	        {field:'TRTSFENS',fixed:false,width:140,title:'成绩',align:'center'},
	        {field:'FEBSC',fixed:false,width:140,title:'考试时长',align:'center'} 
	    
	    ]],
	    pagination:true,
	    pageNumber:1,
	    pageSize:5,
	    pageList:[5,10,15]      
	});
 	 
}
$(".szkjpf_pigai").click(function(){
	var text='试卷批改';
	var url="tyl/pi-gai-shi-juan";
	adds(text,url)
});
function shengzhishijuanpinfensousuo(value,name){
    tables(value);
}
$(function(){
 tables(null);
 
	$(".pxkjpf_xianshi").click(function(){
		tables();
	})
 	
})	 



</script>
				<div class="szkaojuanpinfen_zong">
				
				    <div class="szkaojuanpinfen_shang">
				              <div class="szkjpf_tongguo">
				                  <button class="szkjpf_pigai">待批改试卷</button>
				              </div>
				              <div class="szkjpf_xiangqing">
                                  <input id="ss" class="easyui-searchbox" style="width:300px" data-options="searcher:shengzhishijuanpinfensousuo,prompt:'请输入需要查询的姓名'"></input>					  			              
				              </div>
				    </div> 
				    <div class="szkaojuanpinfen_xia">
				             <table class="szkjpf_biaoge" class="easyui-datagrid" style="width:100%;height:350px;margin-top:20px;" data-options="fitColumns:true">
                                
                            </table>
				    </div>
				</div>
</body>
</html>